package com.sw.paisong.dao;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;

import com.sw.paisong.entity.StaffEntity;

public interface StaffDao extends CrudRepository<StaffEntity, String>, JpaRepository<StaffEntity, String> {

	StaffEntity findByNum(String num);

	Page<StaffEntity> findByNum(String num, Pageable pageable);

}
